package com.dk.service.impl;

import com.dk.mapper.CarCollectionMapper;
import com.dk.pojo.CarCollection;
import com.dk.pojo.CarUser;
import com.dk.service.CarCollectionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 张成涛
 * @since 2021-08-13
 */
@Service
public class CarCollectionServiceImpl extends ServiceImpl<CarCollectionMapper, CarCollection> implements CarCollectionService {

    @Autowired
    private CarCollectionMapper carCollectionMapper;
    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public boolean toInsert(CarCollection carCollection) {
        return carCollectionMapper.insert(carCollection) > 0;
    }
}
